#pragma once
#include "../definition.h"
#include <wx/dialog.h>
#include <wx/checkbox.h>

class MagicDocDlgOptions: public wxDialog
{
private:
    void readConfig();
    void saveConfig();
public:
    STRING  depot_path;
    bool    copy_on_import;
    bool    confirm_on_delete;
public:
	MagicDocDlgOptions(wxWindow *parent, wxWindowID id,
		const wxString &title, const wxPoint &pos = wxDefaultPosition,
		const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE,
		const wxString &name = wxDialogNameStr);
	~MagicDocDlgOptions(void);

	void OnExplore(wxCommandEvent &event);
    
    void UpdateValues();

	wxTextCtrl *tc_depotPath;
	wxCheckBox *cb_copyOnImport;
	wxCheckBox *cb_confirmDelete;

	DECLARE_EVENT_TABLE();
};
